<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxRegister/QxClassX.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_qx_class_x_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">QxClassX.h</div>  </div>
</div>
<div class="contents">
<a href="_qx_class_x_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** http://www.qxorm.com/</span>
<a name="l00004"></a>00004 <span class="comment">** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file is part of the QxOrm library</span>
<a name="l00007"></a>00007 <span class="comment">**</span>
<a name="l00008"></a>00008 <span class="comment">** This software is provided &#39;as-is&#39;, without any express or implied</span>
<a name="l00009"></a>00009 <span class="comment">** warranty. In no event will the authors be held liable for any</span>
<a name="l00010"></a>00010 <span class="comment">** damages arising from the use of this software</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** Commercial Usage</span>
<a name="l00013"></a>00013 <span class="comment">** Licensees holding valid commercial QxOrm licenses may use this file in</span>
<a name="l00014"></a>00014 <span class="comment">** accordance with the commercial license agreement provided with the</span>
<a name="l00015"></a>00015 <span class="comment">** Software or, alternatively, in accordance with the terms contained in</span>
<a name="l00016"></a>00016 <span class="comment">** a written agreement between you and Lionel Marty</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">** GNU General Public License Usage</span>
<a name="l00019"></a>00019 <span class="comment">** Alternatively, this file may be used under the terms of the GNU</span>
<a name="l00020"></a>00020 <span class="comment">** General Public License version 3.0 as published by the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">** Foundation and appearing in the file &#39;license.gpl3.txt&#39; included in the</span>
<a name="l00022"></a>00022 <span class="comment">** packaging of this file. Please review the following information to</span>
<a name="l00023"></a>00023 <span class="comment">** ensure the GNU General Public License version 3.0 requirements will be</span>
<a name="l00024"></a>00024 <span class="comment">** met : http://www.gnu.org/copyleft/gpl.html</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** If you are unsure which license is appropriate for your use, or</span>
<a name="l00027"></a>00027 <span class="comment">** if you have questions regarding the use of this file, please contact :</span>
<a name="l00028"></a>00028 <span class="comment">** contact@qxorm.com</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">****************************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _QX_CLASS_X_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _QX_CLASS_X_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;boost/function.hpp&gt;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;boost/mpl/if.hpp&gt;</span>
<a name="l00048"></a>00048 <span class="preprocessor">#include &lt;boost/mpl/or.hpp&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#include &lt;boost/mpl/logical.hpp&gt;</span>
<a name="l00050"></a>00050 <span class="preprocessor">#include &lt;boost/type_traits/is_pointer.hpp&gt;</span>
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="preprocessor">#include &lt;<a class="code" href="_qx_bool_8h.html" title="qx_bool : QxOrm library boolean type with code and description message when an error occured...">QxCommon/QxBool.h</a>&gt;</span>
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="preprocessor">#include &lt;<a class="code" href="_ix_class_8h.html" title="Common interface for all classes registered into QxOrm context.">QxRegister/IxClass.h</a>&gt;</span>
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 <span class="preprocessor">#include &lt;<a class="code" href="_qx_singleton_8h.html" title="Concrete class to define a thread-safe singleton of QxOrm library.">QxSingleton/QxSingleton.h</a>&gt;</span>
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="preprocessor">#include &lt;<a class="code" href="_qx_collection_8h.html" title="QxOrm container (keep insertion order + quick access by index + quick access by key)">QxCollection/QxCollection.h</a>&gt;</span>
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 <span class="preprocessor">#include &lt;<a class="code" href="is__smart__ptr_8h.html" title="qx::trait::is_smart_ptr&lt;T&gt;::value : return true if T is a smart-pointer of boost, Qt or QxOrm librari...">QxTraits/is_smart_ptr.h</a>&gt;</span>
<a name="l00061"></a>00061 <span class="preprocessor">#include &lt;<a class="code" href="get__sql__type_8h.html" title="qx::trait::get_sql_type&lt;T&gt;::get() : return type name under const char * format used by database engin...">QxTraits/get_sql_type.h</a>&gt;</span>
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <span class="keyword">namespace </span>qx {
<a name="l00064"></a>00064 
<a name="l00069"></a><a class="code" href="classqx_1_1_qx_class_x.html">00069</a> <span class="keyword">class </span><a class="code" href="_qx_macro_8h.html#aa569abe24f343fdc4ad5e12e156ba8a2">QX_DLL_EXPORT</a> <a class="code" href="classqx_1_1_qx_class_x.html" title="qx::QxClassX : list of all classes registered into QxOrm context (this container is a singleton)...">QxClassX</a> : <span class="keyword">public</span> <a class="code" href="classqx_1_1_qx_singleton.html" title="qx::QxSingleton&lt;T&gt; : concrete class to define a thread-safe singleton of type T">QxSingleton</a>&lt;QxClassX&gt;
<a name="l00070"></a>00070 {
<a name="l00071"></a>00071 
<a name="l00072"></a><a class="code" href="classqx_1_1_qx_class_x.html#adee3d361d11094655f47ee7f9496ba1a">00072</a>    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classqx_1_1_qx_singleton.html" title="qx::QxSingleton&lt;T&gt; : concrete class to define a thread-safe singleton of type T">QxSingleton</a>&lt;<a class="code" href="classqx_1_1_qx_class_x.html" title="qx::QxClassX : list of all classes registered into QxOrm context (this container is a singleton)...">QxClassX</a>&gt;;
<a name="l00073"></a><a class="code" href="classqx_1_1_qx_class_x.html#aabb932323cf95a487f6a2d6e285b3641">00073</a>    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classqx_1_1_ix_class.html" title="qx::IxClass : common interface for all classes registered into QxOrm context">IxClass</a>;
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 <span class="keyword">public</span>:
<a name="l00076"></a>00076 
<a name="l00077"></a><a class="code" href="classqx_1_1_qx_class_x.html#a67a9a27128624e4f71a3f93040bbe9bd">00077</a>    <span class="keyword">typedef</span> <a class="code" href="classqx_1_1_ix_function.html#a53d1eb72393b4a5dbe13656cf511e13b">IxFunction::type_any_params</a> <a class="code" href="classqx_1_1_qx_class_x.html#a67a9a27128624e4f71a3f93040bbe9bd">type_any_params</a>;
<a name="l00078"></a><a class="code" href="classqx_1_1_qx_class_x.html#af492cda8f45201f1ac9ed020b4a1660c">00078</a>    <span class="keyword">typedef</span> boost::function&lt;QString (const QVariant &amp;, int, const unsigned int)&gt; <a class="code" href="classqx_1_1_qx_class_x.html#af492cda8f45201f1ac9ed020b4a1660c">type_fct_save_qvariant_usertype</a>;
<a name="l00079"></a><a class="code" href="classqx_1_1_qx_class_x.html#a20b2e7367ae3750ca35547f08d85efef">00079</a>    <span class="keyword">typedef</span> boost::function&lt;QVariant (const QString &amp;, int, const unsigned int)&gt; <a class="code" href="classqx_1_1_qx_class_x.html#a20b2e7367ae3750ca35547f08d85efef">type_fct_load_qvariant_usertype</a>;
<a name="l00080"></a>00080 
<a name="l00081"></a>00081 <span class="keyword">protected</span>:
<a name="l00082"></a>00082 
<a name="l00083"></a><a class="code" href="classqx_1_1_qx_class_x.html#a5bbb3ce1fd368c64beb131a31173108a">00083</a>    <a class="code" href="classqx_1_1_qx_collection.html">QxCollection&lt;QString, IxClass *&gt;</a> <a class="code" href="classqx_1_1_qx_class_x.html#a5bbb3ce1fd368c64beb131a31173108a" title="Collection of classes registered into QxOrm context.">m_lstClass</a>;                   
<a name="l00084"></a><a class="code" href="classqx_1_1_qx_class_x.html#ad15d70fb61b7e31cb85a07e51b504a3e">00084</a>    QHash&lt;QString, QString&gt; <a class="code" href="classqx_1_1_qx_class_x.html#ad15d70fb61b7e31cb85a07e51b504a3e" title="List of SQL types by class name.">m_lstSqlTypeByClassName</a>;               
<a name="l00085"></a><a class="code" href="classqx_1_1_qx_class_x.html#a48ba9b931512c01be92247824df7c9f3">00085</a>    QHash&lt;QString, QString&gt; <a class="code" href="classqx_1_1_qx_class_x.html#a48ba9b931512c01be92247824df7c9f3" title="List of validator message when an invalid value is detected.">m_lstValidatorMessage</a>;                 
<a name="l00086"></a><a class="code" href="classqx_1_1_qx_class_x.html#a67a135b40a0ce61b34a9ed7f05dc9cd0">00086</a>    <a class="code" href="classqx_1_1_qx_class_x.html#af492cda8f45201f1ac9ed020b4a1660c">type_fct_save_qvariant_usertype</a> <a class="code" href="classqx_1_1_qx_class_x.html#a67a135b40a0ce61b34a9ed7f05dc9cd0" title="Serialization of QVariant UserType =&gt; function to save a QVariant UserType (cf. QxSerialize_QVariant...">m_fctSaveQVariantUserType</a>;     
<a name="l00087"></a><a class="code" href="classqx_1_1_qx_class_x.html#ae756ef5f30aeb75bf37ea3ece7b10356">00087</a>    <a class="code" href="classqx_1_1_qx_class_x.html#a20b2e7367ae3750ca35547f08d85efef">type_fct_load_qvariant_usertype</a> <a class="code" href="classqx_1_1_qx_class_x.html#ae756ef5f30aeb75bf37ea3ece7b10356" title="Serialization of QVariant UserType =&gt; function to load a QVariant UserType (cf. QxSerialize_QVariant...">m_fctLoadQVariantUserType</a>;     
<a name="l00088"></a>00088 
<a name="l00089"></a>00089 <span class="keyword">private</span>:
<a name="l00090"></a>00090 
<a name="l00091"></a>00091    <a class="code" href="classqx_1_1_qx_class_x.html" title="qx::QxClassX : list of all classes registered into QxOrm context (this container is a singleton)...">QxClassX</a>();
<a name="l00092"></a>00092    <span class="keyword">virtual</span> ~<a class="code" href="classqx_1_1_qx_class_x.html" title="qx::QxClassX : list of all classes registered into QxOrm context (this container is a singleton)...">QxClassX</a>();
<a name="l00093"></a>00093 
<a name="l00094"></a>00094    <a class="code" href="classqx_1_1_qx_collection.html">QxCollection&lt;QString, IxClass *&gt;</a> * getAll();
<a name="l00095"></a>00095    <a class="code" href="classqx_1_1_ix_class.html" title="qx::IxClass : common interface for all classes registered into QxOrm context">IxClass</a> * <span class="keyword">get</span>(<span class="keyword">const</span> QString &amp; sKey) <span class="keyword">const</span>;
<a name="l00096"></a>00096    <span class="keywordtype">bool</span> <a class="code" href="group___qx_cache.html#ga1b3b7fe7db7920493f40d0adb9c4957e" title="Return true if the cache contains an object associated with key sKey; otherwise return false...">exist</a>(<span class="keyword">const</span> QString &amp; sKey) <span class="keyword">const</span>;
<a name="l00097"></a>00097    <span class="keywordtype">bool</span> <a class="code" href="group___qx_dao.html#gab4400decee849f008633c52a47508995" title="Insert an element or a list of elements into database.">insert</a>(<span class="keyword">const</span> QString &amp; sKey, <a class="code" href="classqx_1_1_ix_class.html" title="qx::IxClass : common interface for all classes registered into QxOrm context">IxClass</a> * pClass);
<a name="l00098"></a>00098    <span class="keywordtype">bool</span> <span class="keyword">remove</span>(<span class="keyword">const</span> QString &amp; sKey);
<a name="l00099"></a>00099    <span class="keywordtype">void</span> <a class="code" href="group___qx_cache.html#ga9334ed3464961f8d21fe022ef3a91203" title="Delete all the objects in the cache.">clear</a>();
<a name="l00100"></a>00100    <span class="keywordtype">void</span> initSqlTypeByClassName();
<a name="l00101"></a>00101    <span class="keywordtype">void</span> initValidatorMessage();
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 <span class="preprocessor">#ifndef _QX_NO_RTTI</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span>   <span class="keyword">const</span> std::type_info &amp; typeInfo(<span class="keyword">const</span> QString &amp; sKey) <span class="keyword">const</span>;
<a name="l00105"></a>00105 <span class="preprocessor">#endif // _QX_NO_RTTI</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span>
<a name="l00107"></a>00107 <span class="keyword">public</span>:
<a name="l00108"></a>00108 
<a name="l00109"></a>00109    <span class="keyword">static</span> boost::any <a class="code" href="group___qx_factory.html#ga0bc0922522ca27cff4af086f9b63977d" title="Return a smart-pointer new instance of object (qx_shared_ptr&lt;T&gt;) associated by key sKey using boost::...">create</a>(<span class="keyword">const</span> QString &amp; sKey);
<a name="l00110"></a>00110    <span class="keyword">static</span> <a class="code" href="classqx_1_1_ix_class.html" title="qx::IxClass : common interface for all classes registered into QxOrm context">IxClass</a> * getClass(<span class="keyword">const</span> QString &amp; sKey);
<a name="l00111"></a>00111    <span class="keyword">static</span> <a class="code" href="classqx_1_1_ix_data_member_x.html" title="qx::IxDataMemberX : common interface for a list of IxDataMember class properties registered into QxOr...">IxDataMemberX</a> * getDataMemberX(<span class="keyword">const</span> QString &amp; sKey);
<a name="l00112"></a>00112    <span class="keyword">static</span> <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">IxFunctionX</a> * getFctMemberX(<span class="keyword">const</span> QString &amp; sKey);
<a name="l00113"></a>00113    <span class="keyword">static</span> <a class="code" href="classqx_1_1_qx_collection.html" title="qx::QxCollection&lt;Key, Value&gt; : QxOrm container (keep insertion order + quick access by index + quick ...">IxFunctionX</a> * getFctStaticX(<span class="keyword">const</span> QString &amp; sKey);
<a name="l00114"></a>00114    <span class="keyword">static</span> <a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * getDataMember(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sDataKey, <span class="keywordtype">bool</span> bRecursive = <span class="keyword">true</span>);
<a name="l00115"></a>00115    <span class="keyword">static</span> <a class="code" href="classqx_1_1_ix_function.html" title="qx::IxFunction : common interface for all functions registered into QxOrm context (used by introspect...">IxFunction</a> * getFctMember(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sFctKey, <span class="keywordtype">bool</span> bRecursive = <span class="keyword">true</span>);
<a name="l00116"></a>00116    <span class="keyword">static</span> <a class="code" href="classqx_1_1_ix_function.html" title="qx::IxFunction : common interface for all functions registered into QxOrm context (used by introspect...">IxFunction</a> * getFctStatic(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sFctKey, <span class="keywordtype">bool</span> bRecursive = <span class="keyword">true</span>);
<a name="l00117"></a>00117    <span class="keyword">static</span> <span class="keywordtype">bool</span> implementIxPersistable(<span class="keyword">const</span> QString &amp; sKey, <span class="keywordtype">bool</span> bTraceIfFalse = <span class="keyword">true</span>);
<a name="l00118"></a>00118 
<a name="l00119"></a>00119    <span class="keyword">static</span> <a class="code" href="classqx_1_1_qx_collection.html">QxCollection&lt;QString, IxClass *&gt;</a> * getAllClasses();
<a name="l00120"></a>00120    <span class="keyword">static</span> <span class="keywordtype">void</span> registerAllClasses();
<a name="l00121"></a>00121    <span class="keyword">static</span> QString dumpAllClasses();
<a name="l00122"></a>00122    <span class="keyword">static</span> QString dumpSqlSchema();
<a name="l00123"></a>00123 
<a name="l00124"></a><a class="code" href="classqx_1_1_qx_class_x.html#a1a554ad6c8b1f10c4a2e4068054a5d75">00124</a>    <span class="keyword">static</span> QHash&lt;QString, QString&gt; * <a class="code" href="classqx_1_1_qx_class_x.html#a1a554ad6c8b1f10c4a2e4068054a5d75">getAllValidatorMessage</a>()               { <span class="keywordflow">return</span> (&amp; <a class="code" href="classqx_1_1_qx_singleton.html#ac42d9f2442411f1ea7ea0505d224a89c">QxClassX::getSingleton</a>()-&gt;m_lstValidatorMessage); }
<a name="l00125"></a><a class="code" href="classqx_1_1_qx_class_x.html#adc2a7407c77de6934bb448ebca9aad43">00125</a>    <span class="keyword">static</span> QHash&lt;QString, QString&gt; * <a class="code" href="classqx_1_1_qx_class_x.html#adc2a7407c77de6934bb448ebca9aad43">getAllSqlTypeByClassName</a>()             { <span class="keywordflow">return</span> (&amp; <a class="code" href="classqx_1_1_qx_singleton.html#ac42d9f2442411f1ea7ea0505d224a89c">QxClassX::getSingleton</a>()-&gt;m_lstSqlTypeByClassName); }
<a name="l00126"></a><a class="code" href="classqx_1_1_qx_class_x.html#a2a24c4f6358f1156673e2e2a2d88ea64">00126</a>    <span class="keyword">static</span> QString <a class="code" href="classqx_1_1_qx_class_x.html#a2a24c4f6358f1156673e2e2a2d88ea64">getSqlTypeByClassName</a>(<span class="keyword">const</span> QString &amp; sClassName)        { <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_class_x.html#adc2a7407c77de6934bb448ebca9aad43">QxClassX::getAllSqlTypeByClassName</a>()-&gt;value(sClassName); }
<a name="l00127"></a>00127 
<a name="l00128"></a>00128 <span class="preprocessor">#ifndef _QX_NO_RTTI</span>
<a name="l00129"></a><a class="code" href="classqx_1_1_qx_class_x.html#a43fd7acdd19fb2538d04c70ea0cc3293">00129</a> <span class="preprocessor"></span>   <span class="keyword">static</span> <span class="keyword">const</span> std::type_info &amp; <a class="code" href="classqx_1_1_qx_class_x.html#a43fd7acdd19fb2538d04c70ea0cc3293">getTypeInfo</a>(<span class="keyword">const</span> QString &amp; sClassName)   { <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_singleton.html#ac42d9f2442411f1ea7ea0505d224a89c">QxClassX::getSingleton</a>()-&gt;<a class="code" href="classqx_1_1_qx_class_x.html#ae27de4b5c1e352c779831f88eed8a459">typeInfo</a>(sClassName); }
<a name="l00130"></a>00130 <span class="preprocessor">#endif // _QX_NO_RTTI</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span>
<a name="l00132"></a><a class="code" href="classqx_1_1_qx_class_x.html#a5eefcbba62835d7ff0fae37ba116cd1b">00132</a>    <span class="keyword">static</span> <a class="code" href="classqx_1_1_qx_class_x.html#af492cda8f45201f1ac9ed020b4a1660c">type_fct_save_qvariant_usertype</a> <a class="code" href="classqx_1_1_qx_class_x.html#a5eefcbba62835d7ff0fae37ba116cd1b">getFctSaveQVariantUserType</a>()           { <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_singleton.html#ac42d9f2442411f1ea7ea0505d224a89c">QxClassX::getSingleton</a>()-&gt;<a class="code" href="classqx_1_1_qx_class_x.html#a67a135b40a0ce61b34a9ed7f05dc9cd0" title="Serialization of QVariant UserType =&gt; function to save a QVariant UserType (cf. QxSerialize_QVariant...">m_fctSaveQVariantUserType</a>; }
<a name="l00133"></a><a class="code" href="classqx_1_1_qx_class_x.html#af3c81759765b8cf94dd5e34349bd1848">00133</a>    <span class="keyword">static</span> <a class="code" href="classqx_1_1_qx_class_x.html#a20b2e7367ae3750ca35547f08d85efef">type_fct_load_qvariant_usertype</a> <a class="code" href="classqx_1_1_qx_class_x.html#af3c81759765b8cf94dd5e34349bd1848">getFctLoadQVariantUserType</a>()           { <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_singleton.html#ac42d9f2442411f1ea7ea0505d224a89c">QxClassX::getSingleton</a>()-&gt;<a class="code" href="classqx_1_1_qx_class_x.html#ae756ef5f30aeb75bf37ea3ece7b10356" title="Serialization of QVariant UserType =&gt; function to load a QVariant UserType (cf. QxSerialize_QVariant...">m_fctLoadQVariantUserType</a>; }
<a name="l00134"></a><a class="code" href="classqx_1_1_qx_class_x.html#ac2154f7d894093cc442a14335b6ceb32">00134</a>    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_class_x.html#ac2154f7d894093cc442a14335b6ceb32">setFctSaveQVariantUserType</a>(<a class="code" href="classqx_1_1_qx_class_x.html#af492cda8f45201f1ac9ed020b4a1660c">type_fct_save_qvariant_usertype</a> fct)   { <a class="code" href="classqx_1_1_qx_singleton.html#ac42d9f2442411f1ea7ea0505d224a89c">QxClassX::getSingleton</a>()-&gt;<a class="code" href="classqx_1_1_qx_class_x.html#a67a135b40a0ce61b34a9ed7f05dc9cd0" title="Serialization of QVariant UserType =&gt; function to save a QVariant UserType (cf. QxSerialize_QVariant...">m_fctSaveQVariantUserType</a> = fct; }
<a name="l00135"></a><a class="code" href="classqx_1_1_qx_class_x.html#a2b09e8758a7ec10b0cdc703bf048ea35">00135</a>    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classqx_1_1_qx_class_x.html#a2b09e8758a7ec10b0cdc703bf048ea35">setFctLoadQVariantUserType</a>(<a class="code" href="classqx_1_1_qx_class_x.html#a20b2e7367ae3750ca35547f08d85efef">type_fct_load_qvariant_usertype</a> fct)   { <a class="code" href="classqx_1_1_qx_singleton.html#ac42d9f2442411f1ea7ea0505d224a89c">QxClassX::getSingleton</a>()-&gt;<a class="code" href="classqx_1_1_qx_class_x.html#ae756ef5f30aeb75bf37ea3ece7b10356" title="Serialization of QVariant UserType =&gt; function to load a QVariant UserType (cf. QxSerialize_QVariant...">m_fctLoadQVariantUserType</a> = fct; }
<a name="l00136"></a>00136 
<a name="l00137"></a>00137    <span class="keyword">template</span> &lt;<span class="keyword">class</span> U&gt;
<a name="l00138"></a><a class="code" href="classqx_1_1_qx_class_x.html#adee1523d83fe411423d9ff14b373f1cf">00138</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> invoke(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sFctKey, U &amp; pOwner, <span class="keyword">const</span> QString &amp; params = QString(), boost::any * ret = NULL)
<a name="l00139"></a>00139    {
<a name="l00140"></a>00140       <span class="keyword">typedef</span> <span class="keyword">typename</span> boost::mpl::if_c&lt; boost::is_pointer&lt;U&gt;::value, <a class="code" href="structqx_1_1_qx_class_x_1_1invoke__ptr.html">QxClassX::invoke_ptr&lt;U&gt;</a>, <a class="code" href="structqx_1_1_qx_class_x_1_1invoke__default.html">QxClassX::invoke_default&lt;U&gt;</a> &gt;::type type_invoke_1;
<a name="l00141"></a>00141       <span class="keyword">typedef</span> <span class="keyword">typename</span> boost::mpl::if_c&lt; qx::trait::is_smart_ptr&lt;U&gt;::value, QxClassX::invoke_ptr&lt;U&gt;, type_invoke_1 &gt;::type type_invoke_2;
<a name="l00142"></a>00142       <span class="keywordflow">return</span> type_invoke_2::invoke(sClassKey, sFctKey, pOwner, params, ret);
<a name="l00143"></a>00143    }
<a name="l00144"></a>00144 
<a name="l00145"></a>00145    <span class="keyword">template</span> &lt;<span class="keyword">class</span> U&gt;
<a name="l00146"></a><a class="code" href="classqx_1_1_qx_class_x.html#ad6d69a76e8ea6379adeeb1a4a357be9e">00146</a>    <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> invoke(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sFctKey, U &amp; pOwner, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_class_x.html#a67a9a27128624e4f71a3f93040bbe9bd">type_any_params</a> &amp; params, boost::any * ret = NULL)
<a name="l00147"></a>00147    {
<a name="l00148"></a>00148       <span class="keyword">typedef</span> <span class="keyword">typename</span> boost::mpl::if_c&lt; boost::is_pointer&lt;U&gt;::value, <a class="code" href="structqx_1_1_qx_class_x_1_1invoke__ptr.html">QxClassX::invoke_ptr&lt;U&gt;</a>, <a class="code" href="structqx_1_1_qx_class_x_1_1invoke__default.html">QxClassX::invoke_default&lt;U&gt;</a> &gt;::type type_invoke_1;
<a name="l00149"></a>00149       <span class="keyword">typedef</span> <span class="keyword">typename</span> boost::mpl::if_c&lt; qx::trait::is_smart_ptr&lt;U&gt;::value, QxClassX::invoke_ptr&lt;U&gt;, type_invoke_1 &gt;::type type_invoke_2;
<a name="l00150"></a>00150       <span class="keywordflow">return</span> type_invoke_2::invoke(sClassKey, sFctKey, pOwner, params, ret);
<a name="l00151"></a>00151    }
<a name="l00152"></a>00152 
<a name="l00153"></a>00153    <span class="keyword">static</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> invokeStatic(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sFctKey, <span class="keyword">const</span> QString &amp; params = QString(), boost::any * ret = NULL);
<a name="l00154"></a>00154    <span class="keyword">static</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> invokeStatic(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sFctKey, <span class="keyword">const</span> type_any_params &amp; params, boost::any * ret = NULL);
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 <span class="keyword">private</span>:
<a name="l00157"></a>00157 
<a name="l00158"></a>00158    <span class="keyword">template</span> &lt;<span class="keyword">class</span> U&gt;
<a name="l00159"></a><a class="code" href="structqx_1_1_qx_class_x_1_1invoke__ptr.html">00159</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_class_x_1_1invoke__ptr.html">invoke_ptr</a>
<a name="l00160"></a>00160    {
<a name="l00161"></a><a class="code" href="structqx_1_1_qx_class_x_1_1invoke__ptr.html#a83c2891d62057836cff4d6f621a4ca99">00161</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> invoke(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sFctKey, U &amp; pOwner, <span class="keyword">const</span> QString &amp; params = QString(), boost::any * ret = NULL)
<a name="l00162"></a>00162       { <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_class_x.html#ab5faa9ca188411dccce9f64ae2ed5dc0">QxClassX::invokeVoidPtr</a>(sClassKey, sFctKey, static_cast&lt;void *&gt;(&amp; (* pOwner)), params, ret); }
<a name="l00163"></a><a class="code" href="structqx_1_1_qx_class_x_1_1invoke__ptr.html#aac4d3d11a8e5722de4da133dd360df17">00163</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> invoke(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sFctKey, U &amp; pOwner, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_class_x.html#a67a9a27128624e4f71a3f93040bbe9bd">type_any_params</a> &amp; params, boost::any * ret = NULL)
<a name="l00164"></a>00164       { <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_class_x.html#ab5faa9ca188411dccce9f64ae2ed5dc0">QxClassX::invokeVoidPtr</a>(sClassKey, sFctKey, static_cast&lt;void *&gt;(&amp; (* pOwner)), params, ret); }
<a name="l00165"></a>00165    };
<a name="l00166"></a>00166 
<a name="l00167"></a>00167    <span class="keyword">template</span> &lt;<span class="keyword">class</span> U&gt;
<a name="l00168"></a><a class="code" href="structqx_1_1_qx_class_x_1_1invoke__default.html">00168</a>    <span class="keyword">struct </span><a class="code" href="structqx_1_1_qx_class_x_1_1invoke__default.html">invoke_default</a>
<a name="l00169"></a>00169    {
<a name="l00170"></a><a class="code" href="structqx_1_1_qx_class_x_1_1invoke__default.html#ab676c25b687a39f218c600ec3a26c6db">00170</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> invoke(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sFctKey, U &amp; pOwner, <span class="keyword">const</span> QString &amp; params = QString(), boost::any * ret = NULL)
<a name="l00171"></a>00171       { <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_class_x.html#ab5faa9ca188411dccce9f64ae2ed5dc0">QxClassX::invokeVoidPtr</a>(sClassKey, sFctKey, static_cast&lt;void *&gt;(&amp; pOwner), params, ret); }
<a name="l00172"></a><a class="code" href="structqx_1_1_qx_class_x_1_1invoke__default.html#afc933f856181de7a7cd6d9427f9f8f7a">00172</a>       <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> invoke(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sFctKey, U &amp; pOwner, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_class_x.html#a67a9a27128624e4f71a3f93040bbe9bd">type_any_params</a> &amp; params, boost::any * ret = NULL)
<a name="l00173"></a>00173       { <span class="keywordflow">return</span> <a class="code" href="classqx_1_1_qx_class_x.html#ab5faa9ca188411dccce9f64ae2ed5dc0">QxClassX::invokeVoidPtr</a>(sClassKey, sFctKey, static_cast&lt;void *&gt;(&amp; pOwner), params, ret); }
<a name="l00174"></a>00174    };
<a name="l00175"></a>00175 
<a name="l00176"></a>00176    <span class="keyword">static</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> invokeVoidPtr(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sFctKey, <span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> QString &amp; params = QString(), boost::any * ret = NULL);
<a name="l00177"></a>00177    <span class="keyword">static</span> <a class="code" href="classqx_1_1_qx_bool.html" title="qx_bool : boolean type with code and description message when an error occured">qx_bool</a> invokeVoidPtr(<span class="keyword">const</span> QString &amp; sClassKey, <span class="keyword">const</span> QString &amp; sFctKey, <span class="keywordtype">void</span> * pOwner, <span class="keyword">const</span> type_any_params &amp; params, boost::any * ret = NULL);
<a name="l00178"></a>00178 
<a name="l00179"></a>00179    <span class="keyword">static</span> <span class="keywordtype">bool</span> isValid_DataMember(<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * p);
<a name="l00180"></a>00180    <span class="keyword">static</span> <span class="keywordtype">bool</span> isValid_SqlRelation(<a class="code" href="classqx_1_1_ix_data_member.html" title="qx::IxDataMember : common interface for all class properties registered into QxOrm context...">IxDataMember</a> * p);
<a name="l00181"></a>00181 
<a name="l00182"></a>00182 };
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 } <span class="comment">// namespace qx</span>
<a name="l00185"></a>00185 
<a name="l00186"></a>00186 <a class="code" href="_qx_macro_8h.html#ad82efc1fae0529dca4a20067c88a9524">QX_DLL_EXPORT_QX_SINGLETON_HPP</a>(<a class="code" href="classqx_1_1_qx_class_x.html" title="qx::QxClassX : list of all classes registered into QxOrm context (this container is a singleton)...">qx::QxClassX</a>)
<a name="l00187"></a>00187 
<a name="l00188"></a>00188 <span class="preprocessor">#endif // _QX_CLASS_X_H_</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_qx_class_x_8h.html">QxClassX.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:04 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
